package com.xunyji.demo03.realm.usedemo;

import com.xunyji.demo0.StringUtilsXyj;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.mgt.DefaultSecurityManager;
import org.apache.shiro.realm.SimpleAccountRealm;
import org.apache.shiro.subject.Subject;
import org.junit.Before;
import org.junit.Test;

/**
 * @author AltEnter
 * @create 2019-01-20 19:05
 * @desc Demo测试类
 **/
public class TestDemo {

    private SimpleAccountRealm simpleAccountRealm = new SimpleAccountRealm();

    @Before
    public void addUser() {
        System.out.println("Hello AltEmter");
        simpleAccountRealm.addAccount("fury", "111111");
    }

    @Test
    public void test01() {
        Object obj = "111111";
        String str = (String) obj;
        System.out.println(str);
    }

    @Test
    public void test02() {
        System.out.println("good boy");
    }

}

